<?php
// +----------------------------------------------------------------------
// | 幕小铺
// +----------------------------------------------------------------------
// | 版权所有 2016~2020 幕小铺科技（大连）有限公司
// +----------------------------------------------------------------------
// | 2020/03/14
// +----------------------------------------------------------------------

namespace app\erp\datacache;

use think\facade\Cache;
use think\facade\Debug;
/**
 * 商品分类
 * @package app\user_center\model
 */
class GoodsClass{
	//商品分类 - 1-3级
	public function getGoodClassLevel3($cache = false){
		$cacheName = 'get_goods_class_level3';
		
		if(!Cache::get($cacheName) || $cache){
			$class_list = model('ErpGoodsClass', 'model') -> getClass();
			Cache::set($cacheName, $class_list, 60*60*24);//默认缓存1小时
		}
        return Cache::get($cacheName);
	}
}
